﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： GovUserEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-01-09
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace CGT.Infrastructure.Entity
{
	/// <summary>
	///用户数据实体  
	/// </summary>
    [PrimaryKey("UserID")]
	public class GovUser
	{
		///<summary>
		///用户
		///</summary>
		public GovUser()
		{
		}	
    
		
		///<summary>
		///UID
		///</summary>
        [Column("UserID","UID")]
        public int UserID { get; set; }

		///<summary>
		///用户名或登录名
		///</summary>
        [Column("UserName","用户名或登录名")]
        public string UserName { get; set; }

		///<summary>
		///密码
		///</summary>
        [Column("PassWord","密码")]
        public string PassWord { get; set; }

		///<summary>
		///姓名
		///</summary>
        [Column("RealName","姓名")]
        public string RealName { get; set; }

		///<summary>
		///身份证明号码
		///</summary>
        [Column("IdentityCode","身份证明号码")]
        public string IdentityCode { get; set; }

		///<summary>
		///是否为警员(1：是，2：否)
		///</summary>
        [Column("IsPolice","是否为警员(1：是，2：否)")]
        public short IsPolice { get; set; }

		///<summary>
		///用户编号（警员编号或员工编号）
		///</summary>
        [Column("UserNumber","用户编号（警员编号或员工编号）")]
        public string UserNumber { get; set; }

		///<summary>
		///用户状态(1：正常，2：锁定)
		///</summary>
        [Column("State","用户状态(1：正常，2：锁定)")]
        public short State { get; set; }

		///<summary>
		///用户有效期截止日期
		///</summary>
        [Column("UserExpireDate","用户有效期截止日期")]
        public DateTime UserExpireDate { get; set; }

		///<summary>
		///密码有效期截止日期
		///</summary>
        [Column("PasswordExpireDate","密码有效期截止日期")]
        public DateTime PasswordExpireDate { get; set; }

		///<summary>
		///可登录开始时间
		///</summary>
        [Column("LoginStartTime","可登录开始时间")]
        public short LoginStartTime { get; set; }

		///<summary>
		///可登录结束时间
		///</summary>
        [Column("LoginEndTime","可登录结束时间")]
        public short LoginEndTime { get; set; }

		///<summary>
		///允许登录的IP地址,多个IP地址以,分隔,为空则允许不限制IP登录
		///</summary>
        [Column("AllowIP","允许登录的IP地址,多个IP地址以,分隔,为空则允许不限制IP登录")]
        public string AllowIP { get; set; }

		///<summary>
		///本次登录IP
		///</summary>
        [Column("CurrentLoginIP","本次登录IP")]
        public string CurrentLoginIP { get; set; }

		///<summary>
		///本次登录时间
		///</summary>
        [Column("CurrentLoginTime","本次登录时间")]
        public DateTime CurrentLoginTime { get; set; }

		///<summary>
		///最后一次登录IP
		///</summary>
        [Column("LastLoginIP","最后一次登录IP")]
        public string LastLoginIP { get; set; }

		///<summary>
		///最后一次登录时间
		///</summary>
        [Column("LastLoginTime","最后一次登录时间")]
        public DateTime LastLoginTime { get; set; }

		///<summary>
		///是否需要强制修改密码(1：是，2：否)
		///</summary>
        [Column("ForceChangePwd","是否需要强制修改密码(1：是，2：否)")]
        public short ForceChangePwd { get; set; }

		///<summary>
		///数据有效标志
		///</summary>
        [Column("IsActive","数据有效标志")]
        public short IsActive { get; set; }

		///<summary>
		///创建时间
		///</summary>
        [Column("CreateDateTime","创建时间")]
        public DateTime CreateDateTime { get; set; }

		///<summary>
		///更新时间
		///</summary>
        [Column("UpdateTime","更新时间")]
        public DateTime UpdateTime { get; set; }

		///<summary>
		///数据校验位(GUID)
		///</summary>
        [Column("OperationID","数据校验位(GUID)")]
        public string OperationID { get; set; }

		///<summary>
		///角色ID
		///</summary>
        [Column("RoleId","角色ID")]
        public int RoleId { get; set; }

		///<summary>
		///校验位
		///</summary>
        [Column("CheckCode","校验位")]
        public string CheckCode { get; set; }

	}
}